package com.bst.etl.factory.dbtype;

import com.bst.common.enums.DataSourceTypeEnum;
import net.sf.jsqlparser.util.validation.feature.DatabaseType;

public class DbTypeMappingFactory {
    public static ITypeMappingStrategy getStrategy(DataSourceTypeEnum dbType) {
        switch (dbType) {
            case MYSQL: return new MySQLTypeMapping();
            case ORACLE: return new OracleTypeMapping();
            case SQLSERVER: return new SqlserverTypeMapping();
            default: throw new IllegalArgumentException("Unsupported database type");
        }
    }
}
